
<?php
//模块插件类
//插件功能类，由系统调用，实现具体功能。
defined('BY_JYA') or exit('error');
class core_jy_gohome extends plugin{
	public function payresult($message){
		$order=$this->get('',array('uniacid'=>$message['uniacid'],'id'=>$message['oid']),array('fee'));
		if($order['fee']==$message['fee']){
			$this->update('',array('transaction_id'=>$message['transaction_id']),array('id'=>$message['oid']));
		}else{
			$this->update('',array('transaction_id'=>'校验失败：实付金额：'.$message['fee']),array('id'=>$message['oid']));
		}
	}
	public function receive($message){
		if($message['Event']=='subscribe'){
			//这里编写关注事件处理代码
			
		}
		if($message['Event']=='unsubscribe'){
			//这里编写取消关注事件处理代码
			
		}
	}
}
?>
